<?php

namespace App\Models\Game;

use Illuminate\Database\Eloquent\Model;
//魂魄合成
class SoulSynthesize extends Model
{
    protected $table = "log_role_soul_synthesize";

    public function __construct(array $attributes = [])
    {
        global $gameArea; if (!$gameArea) $gameArea = 0;
        $this->setConnection('log_'.$gameArea);
        parent::__construct($attributes);
    }

    protected $casts = [
        'use_soul'=>'array',
        'use_material'=>'array',
        'new_soul'=>'array',
    ];

}
